﻿namespace Ruirun.Mes.Entities
{
    /// <summary>
    /// 库位信息
    /// </summary>
    [Description("库位信息")]
    [EntitySchema(Constants.Wms)]
    public class WareHouseAreaPos : EntityBase<Guid>
    {
        /// <summary>
        /// 库位名称
        /// </summary>
        [DisplayName("库位名称")]
        [StringSize(StringSizeType.General)]
        public string AreaPosName { get; set; }

        /// <summary>
        /// 通道
        /// </summary>
        [DisplayName("通道")]
        [StringSize(StringSizeType.Name)]
        public string Channel { get; set; }

        /// <summary>
        /// 组
        /// </summary>
        [DisplayName("组")]
        [StringSize(StringSizeType.Name)]
        public string Group { get; set; }

        /// <summary>
        /// 层号
        /// </summary>
        [DisplayName("层号")]
        [StringSize(StringSizeType.Name)]
        public string LevelNo { get; set; }

        /// <summary>
        /// 位号
        /// </summary>
        [DisplayName("位号")]
        [StringSize(StringSizeType.Name)]
        public string PosNo { get; set; }

        /// <summary>
        /// 关联库区
        /// </summary>
        [DisplayName("关联库区")]
        public Guid WareHouseAreaId { get; set; }

        public virtual WareHouseArea WareHouseArea { get; set; }

        public virtual List<Material> Materials { get; set; }
    }
}
